"use client"
import { SERVER_TRPC_PREFIX, SERVER_URL } from '@/config/dev';
import { AppRouter } from '@/server/trpc';
import { createTRPCClient, httpBatchLink } from "@trpc/client"

export const trpc = createTRPCClient<AppRouter>({
    links: [
        httpBatchLink({
            url: `${SERVER_URL}${SERVER_TRPC_PREFIX}`
        })
    ]
})

export default trpc;